package com.google.code.completenessaudit.vcs;

import java.util.ArrayList;
import java.util.List;

public class RevisionInfos {
	
	private List<SourceInfos> sources = new ArrayList<SourceInfos>();

	
	public List<SourceInfos> getSources() {
		return sources;
	}

	public void setSources(List<SourceInfos> sources) {
		this.sources = sources;
	}
	
	public void addSource(SourceInfos source) {
		sources.add(source);
	}
	

	public boolean containsTask(String taskId) {
		for (SourceInfos info : sources) {
			if(taskId.equalsIgnoreCase(info.getTaskId())) {
				return true;
	      }
	    }
	    return false;
	}
	
	
}
